home *** CD-ROM | disk | FTP | other *** search
- Data-Aware HTML Controls
-
- The Delphi Magazine
- Dec 1999
-
- Steve Troxell
-
-
- To fully utilize this demo software, it is assumed that a web server is installed and
- running on the same machine as this software. The demo software has been tested with
- Microsoft IIS and Internet Explorer.
-
- This software uses the DBDEMOS sample database. It is assumed that a BDE alias of
- "DBDEMOS" is defined. Also realize that the DBDEMOS database could be modified through
- use of this software; you may want to make a copy of the database first.
-
- 1) FOLDERS
-
- ..\Code\AppServer Source code for the application server
- ..\Code\Router Source code for the CGI router
- ..\Code\CueSoft Trial version of CueSoft XML parsing components (Delphi 4)
- ..\Code\WinClient Windows GUI client for application server
- ..\www Files to be deployed as web site
- ..\www\cgi-bin Executables for CGI router and application server
- ..\www\pages HTML template files
-
-
- 2) APPLICATION SERVER
-
- 2a) Set the path to the template folder in the edit control in svrMain.pas. In a
- production environment, this would normally be configurable externally via the
- registry, for example.
-
- 2b) Make sure the project's output directory (Project | Options | Directories/Conditionals)
- to set to the www\cgi-bin folder.
-
- 2c) Compile and execute the app server project to register it as a COM server.
-
-
- 3) CGI ROUTER
-
- 3a) Make sure the project's output directory (Project | Options | Directories/Conditionals)
- to set to the www\cgi-bin folder.
-
- 3b) Compile the CGI router project.
-
-
- 4) SETUP WEB SITE
-
- 4a) Setup a virtual directory for your web server which points to the "www" folder.
- FOr our purposed here, we will assume a virtual directory name of "Sample".
-
- 4b) Launch your web browser and enter the URL
- http://localhost/sample/cgi-bin/router.exe?PI:PAGE=EventMain.sml
-
- 4c) If you get a "Server execution failed" error, go to Windows User Manager and add the
- Internet Guest Account to the Administrators group. For IIS, this account would
- be IUSR_<machinename>.
-
-
- 5) WINCLIENT
-
- 5a) The WinClient project is a test application which exercises the application server
- without having to go through a web server. This greatly simplifies development
- and debugging.
-
- 5b) Compile and execute the WinClient project. Select an SML file and click "Get Page".
- A connection is made to the app server and the requested page is generated and
- viewed as source in the lower memo control. You can save the source by clicking the
- "Save" button.
-
- 5c) For pages that require URL parameters, add the parameters and values in the
- "Variables" box. for example, to properly generate the EventShow.sml page, a
- parameter called EventNum is required. To view event #8, add "EventNum=8" in
- the "Variables" box.